from django.conf.urls.defaults import patterns, include, url
from django.conf import settings

urlpatterns = patterns('',
    (r'^$', 'panel.views.index'),
    (r'^logout/$', 'panel.views.logout'),

    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),

    (r'^conf/(?P<id>.*)$', 'panel.views.conf'),
    (r'^confs/$', 'panel.views.confs'),
    (r'^remover-conf/(?P<id>\d+)/$', 'panel.views.remover_conf'),

    (r'^usuario/(?P<id>.*)$', 'panel.views.usuario'),
    (r'^usuarios/$', 'panel.views.usuarios'),
    (r'^remover-usuario/(?P<id>\d+)/$', 'panel.views.remover_usuario'),
    
    (r'^grupo/(?P<id>.*)$', 'panel.views.grupo'),
    (r'^grupos/$', 'panel.views.grupos'),
)
 
